function clientToLocal(msg: string): string {
	return msg;
}

// why not use string.format?
function format(...args: any[]): string {
	const s = args[0];
	args.shift();
	return s.replace(/{(\d+)}/g, (match, number) =>
		typeof args[number] !== 'undefined' ? args[number] : match,
	);
}

function clientToLocalParam(...args: any[]): string {
	const msg = args[0];
	args[0] = clientToLocal(msg);
	return format(args);
}
